package com.ruoyi.cderp.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 base_data_product
 *
 * @author ruoyi
 * @date 2025-03-13
 */
public class ProductInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 编号 */
    @Excel(name = "编号")
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 简称 */
    @Excel(name = "简称")
    private String shortName;

    /** SKU */
    @Excel(name = "SKU")
    private String skuCode;

    /** 外部编号 */
    private String externalCode;

    /** 类目ID */
    @Excel(name = "类目ID")
    private String categoryId;

    /** 品牌ID */
    @Excel(name = "品牌ID")
    private String brandId;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private Integer productType;


    /** 规格 */
    private String spec;

    /** 单位 */
    private String unit;

    /** 重量（kg） */
    private BigDecimal weight;

    /** 体积（cm3） */
    private BigDecimal volume;

    /** 状态 */
    @Excel(name = "状态")
    private Integer available;

    /** 创建人ID */
    private String createById;

    /** 修改人ID */
    private String updateById;

    /** 图片路径 */
    private String imageUrl;

//    商品品牌名称
    private String brandName;

//    商品类目名称
    private String categoryName;

    //采购价格
    private BigDecimal purchasePrice;

    //销售价格
    private BigDecimal salePrice;

    //零售价格
    private BigDecimal retailPrice;

    //商品品牌
    private BaseDataProductBrand baseDataProductBrand;

    //商品类目
    private BaseDataProductCategory baseDataProductCategory;

    //商品采购价
    private BaseDataProductPurchase baseDataProductPurchase;

    //商品库存
    private TblProductStock tblProductStock;

    public TblProductStock getTblProductStock() {
        return tblProductStock;
    }

    public void setTblProductStock(TblProductStock tblProductStock) {
        this.tblProductStock = tblProductStock;
    }

    public BaseDataProductPurchase getBaseDataProductPurchase() {
        return baseDataProductPurchase;
    }

    public void setBaseDataProductPurchase(BaseDataProductPurchase baseDataProductPurchase) {
        this.baseDataProductPurchase = baseDataProductPurchase;
    }

    public BaseDataProductBrand getBaseDataProductBrand() {
        return baseDataProductBrand;
    }

    public void setBaseDataProductBrand(BaseDataProductBrand baseDataProductBrand) {
        this.baseDataProductBrand = baseDataProductBrand;
    }

    public BaseDataProductCategory getBaseDataProductCategory() {
        return baseDataProductCategory;
    }

    public void setBaseDataProductCategory(BaseDataProductCategory baseDataProductCategory) {
        this.baseDataProductCategory = baseDataProductCategory;
    }
    //商品属性
    List<Properties> properties;

    /** 组合商品信息 */
    private List<ProductBundle> baseDataProductBundleList;

    public List<ProductBundle> getBaseDataProductBundleList() {
        return baseDataProductBundleList;
    }

    public void setBaseDataProductBundleList(List<ProductBundle> baseDataProductBundleList) {
        this.baseDataProductBundleList = baseDataProductBundleList;
    }

    public List<Properties> getProperties() {
        return properties;
    }

    public void setProperties(List<Properties> properties) {
        this.properties = properties;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setShortName(String shortName)
    {
        this.shortName = shortName;
    }

    public String getShortName()
    {
        return shortName;
    }
    public void setSkuCode(String skuCode)
    {
        this.skuCode = skuCode;
    }

    public String getSkuCode()
    {
        return skuCode;
    }
    public void setExternalCode(String externalCode)
    {
        this.externalCode = externalCode;
    }

    public String getExternalCode()
    {
        return externalCode;
    }
    public void setCategoryId(String categoryId)
    {
        this.categoryId = categoryId;
    }

    public String getCategoryId()
    {
        return categoryId;
    }
    public void setBrandId(String brandId)
    {
        this.brandId = brandId;
    }

    public String getBrandId()
    {
        return brandId;
    }
    public void setProductType(Integer productType)
    {
        this.productType = productType;
    }

    public Integer getProductType()
    {
        return productType;
    }
    public void setSpec(String spec)
    {
        this.spec = spec;
    }

    public String getSpec()
    {
        return spec;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setWeight(BigDecimal weight)
    {
        this.weight = weight;
    }

    public BigDecimal getWeight()
    {
        return weight;
    }
    public void setVolume(BigDecimal volume)
    {
        this.volume = volume;
    }

    public BigDecimal getVolume()
    {
        return volume;
    }
    public void setAvailable(Integer available)
    {
        this.available = available;
    }

    public Integer getAvailable()
    {
        return available;
    }
    public void setCreateById(String createById)
    {
        this.createById = createById;
    }

    public String getCreateById()
    {
        return createById;
    }
    public void setUpdateById(String updateById)
    {
        this.updateById = updateById;
    }

    public String getUpdateById()
    {
        return updateById;
    }
    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("shortName", getShortName())
            .append("skuCode", getSkuCode())
            .append("externalCode", getExternalCode())
            .append("categoryId", getCategoryId())
            .append("brandId", getBrandId())
            .append("productType", getProductType())
            .append("spec", getSpec())
            .append("unit", getUnit())
            .append("weight", getWeight())
            .append("volume", getVolume())
            .append("available", getAvailable())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateTime", getUpdateTime())
            .append("imageUrl", getImageUrl())
            .toString();
    }
}
